<!DOCTYPE html>
<html lang="pt-br">
<head>
	<title>Teste</title>
	<meta charset="UTF-8" />
</head>
<body> 
<h1>Menu</h1>


<ul>
        <li><a href="menu.php?tipo=listatudo">LIstar Tudo</a></li>
        <li><a href="menu.php?tipo=inserir">Inserir</a></li>
         <li><a href="menu.php?tipo=buscaCPF">busca CPF</a></li>
        
    </ul>
</body>
</html>
     <?php
    if (isset($_GET['tipo'])){
        include "AlunoDAO.php";
        include "Aluno.php";
    $metodo = $_GET['tipo'];
    switch ($metodo){
        case 'listatudo':
            $alunoDAO = new AlunoDAO();            
            $alunoDAO->ListaTodos();
            break;
        case 'inserir': include 'inserir.php';
            break;
        
        case 'buscaCPF': include 'buscaCPF.php';
            break;
    }
    }
    
    ?>